package org.glut.backend.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class OrderListVO {

    private Integer id;

    private Integer cinemaId;

    private Integer filmId;

    private String filmName;

    private String filmImg;

    private Integer playHall;

    private Integer movieSchedulingId;

    private String cinemaName;

    private String orderNo;

    private Integer status;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private LocalDate sliceArrangementDate;

    /**
     * 开始时间
     */
    @JsonFormat(timezone = "GMT+8",pattern = "HH:mm")
    @DateTimeFormat(pattern="HH:mm")
    private LocalDateTime startTime;

    private BigDecimal totalPrice;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;

    private String soldSeat;

    private List<StreetOrdersItemVO> streetFoods;

}
